
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
import * as cc from "cc";
import { RenameWindow } from '../VMDemo/windows/RenameWindow';
import { resourcesMgr } from '../../framework/loader/ResourcesMgr';
import { WindowNode } from '../../../test1/WindowNode';
import { RenameWindowTest } from './RenameWindowTest';
/**
 * Predefined variables
 * Name = WindowTest
 * DateTime = Sun Mar 20 2022 19:13:19 GMT+0800 (中国标准时间)
 * Author = 272493431
 * FileBasename = WindowTest.ts
 * FileBasenameNoExtension = WindowTest
 * URL = db://assets/scripts/scene/Test/WindowTest.ts
 * ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
 *
 */
 
@ccclass('WindowTest')
export class WindowTest extends Component {
    // [1]
    // dummy = '';

    // [2]
    // @property
    // serializableDummy = 0;

    start () {
        // [3]
    }
    onEnable(){
        let btn = cc.find("Canvas/Button");
        let Node = cc.find("Canvas/Node");
        btn.on("click",()=>{
            new RenameWindowTest();
        });
    }


    onDisable(){

    }
    // update (deltaTime: number) {
    //     // [4]
    // }
}

/**
 * [1] Class member could be defined like this.
 * [2] Use `property` decorator if your want the member to be serializable.
 * [3] Your initialization goes here.
 * [4] Your update function goes here.
 *
 * Learn more about scripting: https://docs.cocos.com/creator/3.4/manual/zh/scripting/
 * Learn more about CCClass: https://docs.cocos.com/creator/3.4/manual/zh/scripting/decorator.html
 * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.4/manual/zh/scripting/life-cycle-callbacks.html
 */
